//
//  ContactUsViewController.m
//  EducationOID
//
//  Created by slz on 2017/6/15.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import "ContactUsViewController.h"
#import "OIPubListViewController.h"

@interface ContactUsViewController ()
@property (nonatomic,strong) PubListTableHeadView *headerView;
@end

@implementation ContactUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.showNavigationBar = YES;
    [self setControllerTitle:@"关于我们"];
    self.view.backgroundColor = [UIColor whiteColor];
    UIBarButtonItem * item = [UIBarButtonItem itemWithImage:@"top_back_1" selectImage:nil addTarget:self andAction:@selector(backAction)];
    self.navigationItem.leftBarButtonItem = item;

    
    NSString * contentString = @"联系人：国家教育OID注册解析中心\n\n联系电话：010-66490969\n\n联系地址：北京复兴门内大街160号";
    
    
    _headerView = [[PubListTableHeadView alloc]init];
    _headerView.titleLabel.text = @"关于我们";
    _headerView.size = CGSizeMake(kScreenWidth, 80);
    [self.view addSubview:_headerView];
    
    UILabel * contentLabel = [UILabel new];
    [self.view addSubview:contentLabel];
    [contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.view.mas_left).offset(20);
        make.right.mas_equalTo(self.view.mas_right).offset(-20);
        make.top.mas_equalTo(_headerView.mas_bottom).offset(20);
    }];
    contentLabel.fontSize = 15;
    contentLabel.numberOfLines = 0;
    contentLabel.textColor = kDark_TextColor_Default;
    contentLabel.text = contentString;
    
    // Do any additional setup after loading the view.
}

- (void)backAction{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
